Source for file controller.php
Documentation is available at controller.php
* This file groups classes pertaining to the "controller" of MVC.
* @author Antoine d'Otreppe de Bouvette <a.dotreppe@aspyct.org>
* @license http://www.opensource.org/licenses/mit-license.php
* Defines a common base for web controllers.
* @param Request $request
$this->request = $request;
* Finds the action named "do_$action" and runs it with the $request object.
* Returns the return value of the action. Throws an ActionNotFoundException
* if the action could not be found.
* @param Request $request
* @throws ActionNotFoundException
$method = array($this, 'do_' . $action);
get_class($this). '::do_'. $action. ' thrown an exception',
'Could not find action "' . $action . '".');
* Exception thrown when the requested action could not be found.
* Exception thrown when an action ran by runAction() thrown an exception
* @param Exception $previous
public function __construct($message, Exception $previous) {
parent::__construct($message, 0, $previous);
|